< previous page page_374 next page >

Page 374
DllRegisterServer. This routine is called by applications or the operating system to register an ActiveX DLL server.
DllUnregisterServer. This routine is called by applications or the operating system to unregister an ActiveX DLL server.
If you find declarations for these functions in your header file, go ahead and delete them.
Step 3:
Port the Comments
Porting comments is probably the easiest part of the conversion process. Comments in C and C++ are indicated in two ways. The start of larger comment blocks is indicated by the character sequence /* and terminated by the character sequence */. Comments in this form can span multiple lines. Examples of valid comments are:
/* comment */
/* first comment line
second comment line
* another comment line

The comment ends here */
Single-line comments are indicated by the character sequence //, which can appear anywhere in a line. This sequence works just like the Visual Basic single quote (') comment character. Examples of valid comments are:
// A complete comment line here.
#define myconstant 0x55 // Comment starts at the // characters.
Converting comments is slightly tedious, but very easy with judicious use of the editor's Replace command. The // sequence can be replaced directly with the single quote (') comment character. Multiline block comments are typically handled manually.
Step 4:
Port the Constants
Constant conversions can range from trivial to complex. Constant declarations take the following form:

 
< previous page page_374 next page >